package com.scalar.chiptrack.operations.reports.forms;

import com.scalar.chiptrack.ChipTrackActionForm;

import java.util.LinkedHashMap;

/**
 * User: sujankumar.suppala
 * Date: Apr 5, 2006
 * Time: 11:06:25 AM
 */
public class QADReportsForm extends ChipTrackActionForm
{
    public QADReportsForm()
    {
    }

    String  processTypeName;
    int     baseProductId;
    int     processStepId;
    String  dueStartDate;
    String  dueEndDate;
    String  relStartDate;
    String  relEndDate;
    String  cardType;
    String  packageType;
    String  memorySize;
    String  datePeriod = "byRelDate"; //'byRelDate', 'byDueDate'
    String  displayType = "workOrderCount";//'workOrderCount', 'terabytes'
    String  reportType = "lateWO";//'lateWO', 'stoppedWO'

    LinkedHashMap woMap;

    public String getProcessTypeName()
    {
        return processTypeName;
    }

    public void setProcessTypeName(String processTypeName)
    {
        this.processTypeName = processTypeName;
    }

    public int getBaseProductId()
    {
        return baseProductId;
    }

    public void setBaseProductId(int baseProductId)
    {
        this.baseProductId = baseProductId;
    }

    public int getProcessStepId()
    {
        return processStepId;
    }

    public void setProcessStepId(int processStepId)
    {
        this.processStepId = processStepId;
    }

    public String getDueStartDate() {
        return dueStartDate;
    }

    public void setDueStartDate(String dueStartDate) {
        this.dueStartDate = dueStartDate;
    }

    public String getDueEndDate() {
        return dueEndDate;
    }

    public void setDueEndDate(String dueEndDate) {
        this.dueEndDate = dueEndDate;
    }

    public String getRelStartDate() {
        return relStartDate;
    }

    public void setRelStartDate(String relStartDate) {
        this.relStartDate = relStartDate;
    }

    public String getRelEndDate() {
        return relEndDate;
    }

    public void setRelEndDate(String relEndDate) {
        this.relEndDate = relEndDate;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getMemorySize() {
        return memorySize;
    }

    public void setMemorySize(String memorySize) {
        this.memorySize = memorySize;
    }

    public String getDatePeriod() {
        return datePeriod;
    }

    public void setDatePeriod(String datePeriod) {
        this.datePeriod = datePeriod;
    }

    public LinkedHashMap getWoMap() {
        return woMap;
    }

    public void setWoMap(LinkedHashMap woMap) {
        this.woMap = woMap;
    }

    public String getDisplayType() {
        return displayType;
    }

    public void setDisplayType(String displayType) {
        this.displayType = displayType;
    }

    public String getReportType() {
        return reportType;
    }

    public void setReportType(String reportType) {
        this.reportType = reportType;
    }

    public String toString()
    {
        StringBuffer sb = new StringBuffer();

        sb.append( "[\n" );
        sb.append( "    BaseProdId  = " + baseProductId + "\n");
        sb.append( "    PS_ID       = " + processStepId + "\n");
        sb.append( "    CardType    = " + cardType + "\n");
        sb.append( "    PackType    = " + packageType + "\n");
        sb.append( "    MemorySize  = " + memorySize + "\n");
        sb.append( "    DatePeriod  = " + datePeriod + "\n");
        sb.append( "    StartDate   = " + dueStartDate + "\n");
        sb.append( "    EndDate     = " + dueEndDate + "\n");
        sb.append( "]\n" );

        return sb.toString();
    }
}
